MailPoet\WooCommerce\Subscription S

Total Complexity 31
Dependencies 16
Dependents 5
Total lines 270
Lines of code 160
Logical lines of code 80
Comment lines 25
Methods 11
Properties 9

Methods 11

Method Rating Maintainability Complexity Lines of code
handleSubscriberOptin()
A
49 8 30
extendWooCommerceCheckoutForm()
S
54 3 23
subscribeOnCheckout()
S
59 3 14
isCurrentUserSubscribed()
S
61 3 12
getSubscriptionPresenceCheckField()
S
56 2 22
subscribe()
S
65 3 9
getSubscriptionField()
S
59 2 14
subscribeOnOrderPay()
S
66 2 8
requireSubscriptionConfirmation()
S
66 2 9
updateSubscriberStatus()
S
65 2 9
__construct()
S
64 1 10